3.599 \(\int (1+x) (1+2 x+x^2)^5 \, dx\)

Optimal. Leaf size=9 \[ \frac{1}{12} (x+1)^{12} \]

[Out]

(1 + x)^12/12

________________________________________________________________________________________

Rubi [A]  time = 0.001211, antiderivative size = 9, normalized size of antiderivative = 1., number of steps used = 2, number of rules used = 2, integrand size = 14, \(\frac{\text{number of rules}}{\text{integrand size}}\) = 0.143, Rules used = {27, 32} \[ \frac{1}{12} (x+1)^{12} \]

Antiderivative was successfully verified.

[In]

Int[(1 + x)*(1 + 2*x + x^2)^5,x]

[Out]

(1 + x)^12/12

Rule 27

Int[(u_.)*((a_) + (b_.)*(x_) + (c_.)*(x_)^2)^(p_.), x_Symbol] :> Int[u*Cancel[(b/2 + c*x)^(2*p)/c^p], x] /; Fr
eeQ[{a, b, c}, x] && EqQ[b^2 - 4*a*c, 0] && IntegerQ[p]

Rule 32

Int[((a_.) + (b_.)*(x_))^(m_), x_Symbol] :> Simp[(a + b*x)^(m + 1)/(b*(m + 1)), x] /; FreeQ[{a, b, m}, x] && N
eQ[m, -1]

Rubi steps

\begin{align*} \int (1+x) \left (1+2 x+x^2\right )^5 \, dx &=\int (1+x)^{11} \, dx\\ &=\frac{1}{12} (1+x)^{12}\\ \end{align*}

Mathematica [A]  time = 0.0011257, size = 9, normalized size = 1. \[ \frac{1}{12} (x+1)^{12} \]

Antiderivative was successfully verified.

[In]

Integrate[(1 + x)*(1 + 2*x + x^2)^5,x]

[Out]

(1 + x)^12/12

________________________________________________________________________________________

Maple [B]  time = 0.001, size = 56, normalized size = 6.2 \begin{align*}{\frac{{x}^{12}}{12}}+{x}^{11}+{\frac{11\,{x}^{10}}{2}}+{\frac{55\,{x}^{9}}{3}}+{\frac{165\,{x}^{8}}{4}}+66\,{x}^{7}+77\,{x}^{6}+66\,{x}^{5}+{\frac{165\,{x}^{4}}{4}}+{\frac{55\,{x}^{3}}{3}}+{\frac{11\,{x}^{2}}{2}}+x \end{align*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

int((1+x)*(x^2+2*x+1)^5,x)

[Out]

1/12*x^12+x^11+11/2*x^10+55/3*x^9+165/4*x^8+66*x^7+77*x^6+66*x^5+165/4*x^4+55/3*x^3+11/2*x^2+x

________________________________________________________________________________________

Maxima [A]  time = 1.01466, size = 16, normalized size = 1.78 \begin{align*} \frac{1}{12} \,{\left (x^{2} + 2 \, x + 1\right )}^{6} \end{align*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate((1+x)*(x^2+2*x+1)^5,x, algorithm="maxima")

[Out]

1/12*(x^2 + 2*x + 1)^6

________________________________________________________________________________________

Fricas [B]  time = 1.15764, size = 159, normalized size = 17.67 \begin{align*} \frac{1}{12} x^{12} + x^{11} + \frac{11}{2} x^{10} + \frac{55}{3} x^{9} + \frac{165}{4} x^{8} + 66 x^{7} + 77 x^{6} + 66 x^{5} + \frac{165}{4} x^{4} + \frac{55}{3} x^{3} + \frac{11}{2} x^{2} + x \end{align*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate((1+x)*(x^2+2*x+1)^5,x, algorithm="fricas")

[Out]

1/12*x^12 + x^11 + 11/2*x^10 + 55/3*x^9 + 165/4*x^8 + 66*x^7 + 77*x^6 + 66*x^5 + 165/4*x^4 + 55/3*x^3 + 11/2*x
^2 + x

________________________________________________________________________________________

Sympy [B]  time = 0.105322, size = 65, normalized size = 7.22 \begin{align*} \frac{x^{12}}{12} + x^{11} + \frac{11 x^{10}}{2} + \frac{55 x^{9}}{3} + \frac{165 x^{8}}{4} + 66 x^{7} + 77 x^{6} + 66 x^{5} + \frac{165 x^{4}}{4} + \frac{55 x^{3}}{3} + \frac{11 x^{2}}{2} + x \end{align*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate((1+x)*(x**2+2*x+1)**5,x)

[Out]

x**12/12 + x**11 + 11*x**10/2 + 55*x**9/3 + 165*x**8/4 + 66*x**7 + 77*x**6 + 66*x**5 + 165*x**4/4 + 55*x**3/3
+ 11*x**2/2 + x

________________________________________________________________________________________

Giac [B]  time = 1.11678, size = 74, normalized size = 8.22 \begin{align*} \frac{1}{12} \, x^{12} + x^{11} + \frac{11}{2} \, x^{10} + \frac{55}{3} \, x^{9} + \frac{165}{4} \, x^{8} + 66 \, x^{7} + 77 \, x^{6} + 66 \, x^{5} + \frac{165}{4} \, x^{4} + \frac{55}{3} \, x^{3} + \frac{11}{2} \, x^{2} + x \end{align*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate((1+x)*(x^2+2*x+1)^5,x, algorithm="giac")

[Out]

1/12*x^12 + x^11 + 11/2*x^10 + 55/3*x^9 + 165/4*x^8 + 66*x^7 + 77*x^6 + 66*x^5 + 165/4*x^4 + 55/3*x^3 + 11/2*x
^2 + x